home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 6999 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  833 b 

  1. Path: news.uh.edu!usenet
  2. From: Sensarn <txs53132@bayou.uh.edu>
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: Smooth animation in Borland C++ ?
  5. Date: 21 Feb 1996 01:17:14 GMT
  6. Organization: AEtna Insurance Agency
  7. Message-ID: <4gdrqq$l6f@masala.cc.uh.edu>
  8. References: <4gbkpr$76p@ceylon.gte.com>
  9. NNTP-Posting-Host: sip-14138.public-dialups.uh.edu
  10. Mime-Version: 1.0
  11. Content-Type: text/plain; charset=us-ascii
  12. Content-Transfer-Encoding: 7bit
  13. X-Mailer: Mozilla 1.1 (Windows; U; 16bit)
  14.  
  15. Use the vertical retrace sync
  16.  
  17. while(inp(0x3DA)&8);
  18. while(!(inp(0x3DA)&8);
  19.  
  20. before each double buffer to screen transfer.  It ensures that the 
  21. electron gun is in the 'start' position.  The whole thing takes about 
  22. 1/70 of a second.
  23.  
  24. -- 
  25. |\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\|
  26. Steven Sensarn -- txs53132@bayou.uh.edu
  27. |/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/|
  28.  
  29.  
  30.